import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { HttpModule } from "@angular/http";
import { AboutPage } from '../pages/about/about';
import { MinePage } from '../pages/mine/mine';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { LoginPage } from '../pages/login/login';
import { MineModule } from '../pages/mine/mine.module';
import { ShopcarPage } from '../pages/shopcar/shopcar';
import { ProductDetailsPage } from '../pages/product-details/product-details';
import { StorageProvider } from '../providers/storage/storage';
import { HttpserveProvider } from '../providers/httpserve/httpserve';
import { ScreeningPage } from '../pages/screening/screening';
import { NavtiveServeProvider } from '../providers/navtiveServe/navtiveServe';
import { UrlConstant } from '../commons/url';
import { QRScanner,QRScannerStatus } from '@ionic-native/qr-scanner';
import { Network } from '@ionic-native/network';



@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    MinePage,
    HomePage,
    TabsPage,
    LoginPage,
    ShopcarPage,
    ProductDetailsPage,
    ScreeningPage
  ],
  imports: [
    BrowserModule,
    HttpModule,
    MineModule,
    IonicModule.forRoot(MyApp,{
      mode:"ios",
      backButtonText: '返回',
      tabsHideOnSubPages:true
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    MinePage,
    HomePage,
    TabsPage,
    LoginPage,
    ShopcarPage,
    ProductDetailsPage,
    ScreeningPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    StorageProvider,
    HttpserveProvider,
    NavtiveServeProvider,
    UrlConstant,
    QRScanner,
    Network
  ]
})
export class AppModule {}
